<?php


namespace app\admin\validate;


use think\Validate;

class AdminUser extends Validate
{
    protected $rule = [
        'username' => 'require|max:50',
        'password' => 'require'
    ];

    protected $message = [
        'username' => '用户名必须填',
        'username.max' => '请核对信息',
        'password.require' => '密码必须填'
    ];
}